package com.atguigu.eduservice.controller;

import com.atguigu.commonutils.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kabuda
 * @create 2023-04-26 15:25
 */
@RestController
@RequestMapping("/eduservice/user")
public class EduUserController {
    @PostMapping("/login")
    public R login(){
        return R.ok();
    }
    @GetMapping("/info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","[admin]");
    }
}
